package com.System.Dao;

import com.System.pojo.DisFavor;
import com.System.pojo.Favor;
import com.System.pojo.Post;
import com.System.pojo.User;

import java.util.List;

public interface PostDao {
    public Post selectMyPost(User user);
    public Favor hasFavor(Favor favor);
    public void likePost(Favor favor);
    public void unLikePost(Favor favor);
    public Post selectLikeNumbers(Post post);
    public void updateLikeNumber(Post post);
    public void deleteMyPost(Post post);
    public void addPost(Post post);
    public Post selectOne(Post post);
    public void updatePost(Post post);
    public void addDisFavor(DisFavor disFavor);
    public DisFavor hasDisFavor(DisFavor disFavor);
    public void deleteDisFavor(DisFavor disFavor);

}
